#pragma once
#include <d3d9.h>
#include <d3dx9.h>
#include <dinput.h>

#define KEYBOARD_BUFFERED_SIZE 1024

class CDxManager
{
private:
	//Direct3D variables
	LPDIRECT3D9			mp_d3d;
	LPDIRECT3DDEVICE9	mp_d3ddv;

	//Direct Input
	LPDIRECTINPUT8			mp_di;
	LPDIRECTINPUTDEVICE8	mp_KeyBoard;


public:
	CDxManager();
	~CDxManager();
	
	void InitDirect(HWND, D3DFORMAT, int , int, bool);
	void InitInput(HWND, HINSTANCE);	
		
	void Clear(void);

	//get methods
	//
	LPDIRECT3D9			GetDirectObject(void);
	LPDIRECT3DDEVICE9	GetDirectDevice(void);

	LPDIRECTINPUT8			GetInputObject(void);
	LPDIRECTINPUTDEVICE8	GetInputDevice(void);
};